<ul class="photo-list">
	<li class="control">
		<?= $this->element('photo_picker', array(
			'name' => "New{$name}."
		)) ?>
	</li>
	<? $data = $data ? $data : array() ?>
	<? foreach ($data as $k=>$image): ?>
	<li>
		<a class="remove" href="javascript:void(0)" onclick="$(this).parent().remove()">x</a>
		<?= $this->Form->hidden("{$name}.$k.id", array('value' => $image['id'])) ?>
		<?= $this->Form->hidden("{$name}.$k.image", array('value' => $image['image'])) ?>
		<?= $this->Form->hidden("{$name}.$k.position", array('value' => $image['position'], 'class'=>'position')) ?>
		<?= $this->Html->image(sprintf($path, $image['image']) . "?w=100&h=100") ?>
	</li>
	<? endforeach ?>
</ul>